<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>会员注册页面</title>
<link type="text/css" rel="stylesheet" href="../../static/css/style.css" >
<script type="text/javascript" src="../../static/script/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../../static/script/commons.js"></script>
<!--<script type="text/javascript">-->
<!--	-->
<!--	-->
<!--	$(document).ready(function(){-->
<!--		//1.界面加载完成执行-->
<!--		//2.绑定注册按钮事件-->
<!--		$("#sub_btn").on("click" , function(){-->
<!--			//点击注册后执行的方法-->
<!--			//3.使用ajax调用后端,进行用户注册-->
<!--			register();-->
<!--		});-->

<!--	});-->


<!--	function register(){-->

<!--		$.ajax({-->
<!--			   type: "POST",-->
<!--			   //访问后端的注册接口-->
<!--			   url: base_url+"/user/toRegisterSuccess",-->
<!--			   data: $("#registerForm").serialize(),-->
<!--			   dataType :"json",-->
<!--			   success: function(msg){-->
<!--			     if(msg!=null){-->
<!--					 alert("注册成功！")-->
<!--					 window.location.href="regist_success.html";-->
<!--			     }else{-->
<!--					 alert("注册失败！")-->
<!--			     }-->
<!--			   }-->
<!--		});-->

<!--	}-->



<!--	-->
<!--</script>-->
<style type="text/css">
	.login_form{
		height:420px;
		margin-top: 25px;
	}
	
</style>
</head>
<body>
		<div id="login_header">
			<img class="logo_img" alt="" src="../../static/img/logo.gif" >
		</div>
		
			<div class="login_banner">
			
				<div id="l_content">
					<span class="login_word">欢迎注册</span>
				</div>
				
				<div id="content">
					<div class="login_form">
						<div class="login_box">
							<div class="tit">
								<h1>注册会员</h1>
								<span class="errorMsg"></span>
							</div>
							<div class="form">
								<form id="registerForm"  action="user/register" method="post">
									<label>用户名称：</label>
									<input class="itxt" type="text" placeholder="请输入用户名" autocomplete="off" tabindex="1" name="username" id="username" />
									<br />
									<br />
									<label>用户密码：</label>
									<input class="itxt" type="password" placeholder="请输入密码" autocomplete="off" tabindex="1" name="password" id="password" />
									<br />
									<br />
									<input type="button" value="注册" id="sub_btn" />
									
								</form>
							</div>
							
						</div>
					</div>
				</div>
			</div>
		<div id="bottom">
			<span>
				三体网上书城.Copyright &copy;2020
			</span>
		</div>
</body>
</html>